<template>
  <div>
    <StatusCard t="success" v-for="n in data" :key="n.school">
      <div slot="title">{{ n.school }}</div>
      <div class="edu-info">
        <div class="edu-info-l">
          <div class="n">学校：{{ n.school }}</div>
          <div class="n">在校时间：{{ n.zaixiao }}</div>
        </div>
        <div class="edu-info-c"></div>
        <div class="edu-info-r">
          <div class="n">学历层次：{{ n.cengci }}</div>
          <div class="n">专业：{{ n.zhuanye }}</div>
        </div>
      </div>
    </StatusCard>
    <div v-if="data.length === 0" class="empty">未查到相关记录</div>
  </div>
</template>

<script>
import StatusCard from "../miniCard/StatusCard.vue";
export default {
  props: {
    data: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  methods: {},
  mounted: function() {},
  components: { StatusCard }
};
</script>
<style lang="scss">
.edu-info {
  display: flex;
  width: 100%;
  align-items: center;
  font-size: 12px;
  color: #787dab;
  .n {
    margin-top: 10px;
  }
  .edu-info-l {
    flex: 1;
  }
  .edu-info-c {
    width: 1px;
    height: 28px;
    margin: 0 18px;
    background-color: #43476f;
  }
  .edu-info-r {
    flex: 1;
  }
}
</style>
